package com.feri.fs.api.controller;

import com.feri.fs.api.service.UserProjectService;
import common.bo.UserProjectBo;
import common.vo.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/project/")
@Api(value = "实现源码生成的相关操作",tags = "实现源码生成的相关操作")
public class UserProjectController {
    @Autowired
    private UserProjectService service;

    //新增
    @PostMapping("createsrc")
    public R save(@RequestBody UserProjectBo entity){
        return service.save(entity);
    }
    //分页查询
    @GetMapping("page")
    public R queryPage(@RequestParam int page,@RequestParam int size){
        return service.queryPage(page, size);
    }

    @GetMapping("srcdetail")
    public R detail(@RequestParam int id){
        return service.detail(id);
    }


}
